import request from "@/utils/request";
import { commonDetail, commonEdit } from "../_common";
const controller = "setting";
// 媒资下载排行
/**
 * 获取记录详情
 * @param id 记录id
 */
export function detail() {
  return request({
    url: `/${controller}`,
    method: "get",
  });
}

/**
 * 编辑记录
 * @param id  记录id
 * @param data  修改数据
 */
export function edit(data) {
  return request({
    url: `/${controller}`,
    method: "put",
    data,
  });
}
